package com.example.springbott.mapper;

import com.example.springbott.bean.AdminInfoBean;
import com.example.springbott.bean.MarketAdmin;
import com.example.springbott.bean.MarketAdminExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketAdminMapper {
    long countByExample(MarketAdminExample example);

    int deleteByExample(MarketAdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAdmin record);

    int insertSelective(MarketAdmin record);

    List<MarketAdmin> selectByExample(MarketAdminExample example);

    MarketAdmin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAdmin record, @Param("example") MarketAdminExample example);

    int updateByExample(@Param("record") MarketAdmin record, @Param("example") MarketAdminExample example);

    int updateByPrimaryKeySelective(MarketAdmin record);

    int updateByPrimaryKey(MarketAdmin record);



    void insertPermission(@Param("label") String label, @Param("label1") String label1, @Param("api") String api, @Param("id2") String id2, @Param("label2") String label2);

    String selectPasswordById(Integer id);

    void updatePassword(@Param("newPassword") String newPassword, @Param("id") Integer id);

}